<!--
 * @FilePath     : /study_code/layui/18-10.html
 * @Description  : showLine 配置项：树组件节点前显示三角图标
 * @Date         : 2025-04-10 16:22:01
 * @Author       : Fang YingGui
 * @LastEditors  : fangyinggui 18715384437@163.com
 * @LastEditTime : 2025-04-10 16:22:09
-->
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>documentName</title>
    <link rel="stylesheet" href="/layui/dist/css/layui.css" />
  </head>
  <body>
    <div id="test1"></div>

    <script src="/layui/dist/layui.js"></script>
    <script src="/layui/tree/common.js"></script>
    <script>
      layui.use('tree', function () {
        var tree = layui.tree,
          $ = layui.$

        //渲染
        var inst1 = tree.render({
          elem: elem,
          data: data,

          //
          showLine: true, // 显示三角图标
        })
      })
    </script>
  </body>
</html>
